﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Register src="/Views/Shared/AccountFooter.ascx" tagname="AccountFooter" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
     <title><%:SiteResource.Title() %></title>
      <%="<meta name=\"Keywords\" content=\"" + SiteResource.KeyWord() + "\" />\r\n"%>
    <%="<meta name=\"Description\" content=\"" + SiteResource.Description() + "\" />\r\n"%>
    <link href="/Content/css/commonstyle.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/activation.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript">
        var ret = false;
        function RequestReValidate(sender) {          
            if (!ret) {
                $.ajax({
                    url: '/Account/ReSendEmail',
                    data: { 'username': '<%=Request.QueryString["usn"] %>' },
                    type: 'get',
                    cache: false,
                    success: function (result) {
                        ret = true;
                        $(sender).parent().parent().html('邮件已发送。请进入邮箱重新激活。');
                    }
                });
            }
        }
    </script>
</head>
<body>
<%string type = Request.QueryString["type"]; %>
    <div class="content">
        <div class="content-line">
            <div class="content-line-left">
                <div class="content-logo">
                    <img src="/Content/images/logo-00.png" />
                </div>
            </div>
            <div class="content-line-right">
                <div class="content-toprighttext">
                    <img src="/Content/images/重庆最具影响力的兼职资源服务平台.png" /></div>
            </div>
        </div>
        <div class="hline">
        </div>
        <div class="content-line">
            <div class="box">
                <div class="boxbg">
                    <div class="activation">
                        <img src="/Content/images/activationfail.png" />
                        <div class="activation-text1">
                            <b>对不起! </b>激活操作失败!<br />
                        </div>
                        <div class="activation-text2">
                        <%if (String.IsNullOrEmpty(Request.QueryString["usn"]))
                          {%> 
                           请您重新登录您的账号，以重新获取我们的邀请邮件进行激活。
                            <div class="activation-text-line">
                                <div class="activation-text-line-left">
                                    为此，给您带来的不变请谅解，此外您也可以继续访问本站以获取最新兼职信息。
                                    <a href="/">返回首页</a>
                                    </div>
                                
                            </div>
                        <%}
                          else
                          {
                              if (String.Equals(type, "0"))
                              {%>
                          激活失败可能是您的激活时间超时造成的。
                            <div class="activation-text-line">
                                <div class="activation-text-line-left">
                                    您可以尝试</div>
                                <div class="activation-text-vspace">
                                </div>
                                <div class="activation-text-line-left">
                                    <a href="javascript:;">
                                        <img src="/Content/images/发送激活邮件.png" onclick="RequestReValidate(this)" /></a></div>
                                <div class="activation-text-vspace">
                                </div>
                                <div class="activation-text-line-left">
                                    或 <a href="/">返回首页</a>。</div>
                            </div>
                        <%}
                              else if (String.Equals(type, "1"))
                              { %>
                           您可以稍后重新进入您的邮箱进行账号激活。
                            <div class="activation-text-line">
                                <div class="activation-text-line-left">
                                    此外，您也可以尝试</div>
                                <div class="activation-text-vspace">
                                </div>
                                <div class="activation-text-line-left">
                                    <a href="javascript:;">
                                        <img src="/Content/images/发送激活邮件.png" onclick="RequestReValidate(this)" /></a></div>
                                <div class="activation-text-vspace">
                                </div>
                                <div class="activation-text-line-left">
                                    或 <a href="/">返回首页</a>。</div>
                            </div>
                          <%}
                              else
                              { %>
                            <div class="activation-text-line">
                                <div class="activation-text-line-left">
                                    您可以尝试</div>
                                <div class="activation-text-vspace">
                                </div>
                                <div class="activation-text-line-left">
                                    <a href="javascript:;">
                                        <img src="/Content/images/发送激活邮件.png" onclick="RequestReValidate(this)" /></a></div>
                                <div class="activation-text-vspace">
                                </div>
                                <div class="activation-text-line-left">
                                    或 <a href="/">返回首页</a>。</div>
                            </div>
                            <%}
                          }%>
                            若问题仍不能解决，您可直接与我们<a href="#">技术服务</a>联系！
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-line">
            <uc1:AccountFooter ID="AccountFooter1" runat="server" /> 
        </div>
    </div>
</body>
</html>
